package com.sfc.web.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * Created by heylear.cai on 2016/3/11.
 */
@Controller
public class IndexController {
    @RequestMapping({"", "/index.html"})
    public void index(HttpServletRequest request, HttpServletResponse response) throws Exception{
        response.sendRedirect(request.getContextPath() + "/static/index.html");
    }
}
